<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
* 
*/
class MY_Session extends CI_Session
{

	public function __construct()
	{
		parent::__construct();

	}


	/**
	 * Set flashdata error several time like new array element
	 * 
	 *
	 * @param mixed Value 
	 * @param String Error type (e - error, i - information, s - succesful)
	 */

	function set_error_flashdata($newval = '', $type = 'e')
	{

		$flashdata_key = $this->flashdata_key.':new:'.$type;


		$data = $this->userdata($flashdata_key);

		$data[] = $newval;

		$this->set_userdata($flashdata_key, $data);

	}


}
